package com.nulldev.util.languages.json.uniapi.misc;

import com.nulldev.util.JVM.JVM;
import com.nulldev.util.languages.json.uniapi.UniJsonValue;

public class JsonV2InternalValueTest {

	public static void main(String[] args) {
		{
			final UniJsonValue uv = UniJsonValue.object().add("title", "Hello world!");

			JVM.println("isString: " + uv.get("title").isString());
			JVM.println("value: " + uv.getString("title"));
		}
		JVM.println("==============================");
		{
			final UniJsonValue uv = UniJsonValue.object().add("title", UniJsonValue.object().add("simpleText", "Hello world!"));

			JVM.println("isString: " + uv.get("title").isString());
			JVM.println("value: " + uv.getString("title"));
		}
	}

}
